FluentBooking\App\Services\TimeSlotService D

Total Complexity 193
Dependencies 11
Dependents 1
Total lines 1,025
Lines of code 731
Logical lines of code 485
Comment lines 42
Methods 34
Properties 4

Methods 34

Method Rating Maintainability Complexity Lines of code
maybeBookingFrequencyLimitRanges()
B
39 18 64
maybeBookingDurationLimitRanges()
B
40 17 59
processBookings()
A
41 14 55
getRangedValidSlots()
A
43 12 46
isSlotAvailable()
A
50 13 27
createDateRangeArrayFromSlotConfig()
A
47 9 35
getWeekDaySlots()
A
49 9 28
adjustGroupedSlots()
A
49 8 31
isSpotAvailable()
S
49 6 30
convertSpots()
S
50 6 29
handleNextDayOverrideSlot()
S
53 6 22
handleNextDaySlot()
S
53 6 22
convertSlotSetsToFlat()
S
54 6 19
maybeDateOverrides()
S
58 6 15
processRemoteBookings()
S
56 5 19
getFilledWeeks()
S
55 5 18
isLocalBooking()
S
63 5 11
getAvailableSpots()
S
54 4 20
getCurrentDateRange()
S
57 4 17
getDates()
S
55 4 17
adjustStartDate()
S
59 4 14
removeOverrideSlots()
S
62 4 11
getEnabledSlots()
S
65 4 9
getBookedSlots()
S
52 2 24
getBookingDurationTotal()
S
58 2 17
getBookingsTotal()
S
59 2 15
maybeDayLightSavingTime()
S
67 2 7
mergeAndSortSlots()
S
64 2 10
getTimezoneInfo()
S
70 2 6
maybeDayLightSavingSlot()
S
66 2 8
__construct()
S
71 1 6
extractMonthAndYear()
S
72 1 5
bookSlot()
S
66 1 9
sortDaySlots()
S
71 1 6